package com.lgx.mall.business.dao;

import java.util.List;

import com.lgx.common.exception.DataException;
import com.lgx.common.web.Pagination;
import com.lgx.mall.business.entity.ConsumerInfo;
import com.lgx.right.entity.User;

public interface IConsumerInfoDao {

	public ConsumerInfo createConsumerInfo(ConsumerInfo consumerInfo)throws DataException;
    public void updateRechargeInfo(ConsumerInfo consumerInfo)throws DataException;
//	public void deleteRechargeInfo(RechargeInfo rechargeInfo)throws DataException;
//	public void deleteRechargeInfo(long id)throws DataException;
	public ConsumerInfo findConsumerInfoById(long id);    //根据消费单号检索对应信息
	
	public List<ConsumerInfo> findConsumerInfos(Long userId);   //根据用户id检索对应的编号
	
	public Pagination findConsumerInfoPagination(Object[] params, int pageSize, int pageNum);
	
	public List<User> findUserByCardIdOrMobile(String userCardIdOrMobile);
	
//	public void deleteRechargeInfos(String[] ids)throws DataException;
}
